package com.keshe.order.dao;


import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.keshe.order.entity.OrderEntity;
import com.keshe.order.entity.ReturnEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

@Mapper
public interface ReturnDao extends BaseMapper<ReturnEntity> {
    IPage<ReturnEntity> getReturnList(@Param("page") Page<OrderEntity> page, @Param(Constants.WRAPPER) Wrapper<Map<String, Object>> wrapper);
    ReturnEntity getReturnInfo(@Param(Constants.WRAPPER) Wrapper<Map<String, Object>> wrapper);
}
